<?php
class Site_Model_Observer_DuplicateToLocale extends Promotor_Observable_Observer_Abstract
{
	public function update(Promotor_Observable_List $list, 
								$actionType = null, $data = null, Site_Model_Site $model = null)
	{
		if ($actionType !== 'duplicate')
		{
			$this->_setStatus(self::NULL);
			return;
		}

		if (!isset($data['action_checked']) || is_array($data['action_checked']))
		{
			$this->_setStatus(self::NULL);
			return;
		}

		// TODO
//		$model->duplicateChecked();

//		try {
//			$status = $result ? self::SUCCESS : self::FAILURE;
//			$this->_setStatus($status);
//		} catch (Zend_Cache_Exception $e) {
//			$this->_addException($e);
//			$this->_setStatus(self::FAILURE);
//		}
	}
}
